Previous topicNext topic
Help > Keyword Reference >
TXT.WINDOW method

Syntax

TXT.WINDOW(Cap$, x, y [,Rows, Cols]) TO hWin

Remarks

A new Text Window is created and attached to your program. The size of the Window is determined by rows and cols, or defaults to 25 rows and 80 columns. Subsequent TXT Methods will act upon this newly created Text Window.

If the Text Window is created successfully, the handle will be assigned to the variable specified by hWin. If it fails, the value zero (0) will be assigned instead. If you try to create a Text Window while another still exists, it will fail. In this case, you must first destroy the prior Text Window, as only one may exist at a time.

The parameters x and y specify the requested location of the window, relative to the upper left corner of the desktop. The parameters are always given in pixels. Rows and columns optionally specify the size of the window, given in the number of characters which will fit within the borders. If not given, the method defaults to 25 vertical rows by 80 horizontal columns.

See also

DIALOG NEW, GRAPHIC WINDOW, INPUTBOX$, MSGBOX